import request from '@/utils/request'

// 查询出栏登记列表
export function listCattleyardoutrecord(query) {
    return request({
        url: '/cattleyardoutrecord/cattleyardoutrecord/list',
        method: 'get',
        params: query
    })
}

// 查询出栏登记详细
export function getCattleyardoutrecord(id) {
    return request({
        url: '/cattleyardoutrecord/cattleyardoutrecord/' + id,
        method: 'get'
    })
}

// 新增出栏登记
export function addCattleyardoutrecord(data) {
    return request({
        url: '/cattleyardoutrecord/cattleyardoutrecord',
        method: 'post',
        data: data
    })
}

// 修改出栏登记
export function updateCattleyardoutrecord(data) {
    return request({
        url: '/cattleyardoutrecord/cattleyardoutrecord',
        method: 'put',
        data: data
    })
}

// 删除出栏登记
export function delCattleyardoutrecord(id) {
    return request({
        url: '/cattleyardoutrecord/cattleyardoutrecord/' + id,
        method: 'delete'
    })
}

export function quereybatch() {
    return request({
        url: '/feedchangelog/feedchangelog/quereybatch',
        method: 'get',
    })
}

export function quereylocation() {
    return request({
        url: '/cattleyardoutrecord/cattleyardoutrecord/getBatchName',
        method: 'get',
    })
}
